package com.group4.datafactorybackend.entity.DO;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;

/**
 * @author OKer
 * @date 2022/8/2
 * @description 数据资产表实体
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value ="data_assert")
public class DataAssertDO implements Serializable {

	/**
	 * 表ID
	 */
	@TableId(type = IdType.AUTO)
 	@TableField(value = "id")
	private Long id;

	/**
	 * 数据资产编号
	 */
 	@TableField(value = "da_code")
	private String daCode;

	/**
	 * 数据资产中文名称
	 */
 	@TableField(value = "da_ch_name")
	private String daChName;

	/**
	 * 数据资产英文名称
	 */
 	@TableField(value = "da_en_name")
	private String daEnName;

	/**
	 * 数据资产描述
	 */
 	@TableField(value = "da_describe")
	private String daDescribe;

	/**
	 * 数据资产状态
	 */
 	@TableField(value = "da_status")
	private Long daStatus;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(value = "create_time",fill = FieldFill.INSERT)
	private Date createTime;

	/**
	 * 修改时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

}
